{include file="public/personcenter" /}


<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-body">

                    <div id="info" class="layui-upload">
                        <div class="layui-upload-list">
                            <img class="layui-upload-img" id="demo1" src="//t.cn/RCzsdCq">
                            <p id="demoText"></p>
                        </div>
                        <li>
                            <a id="test1" href="#">修改头像</a></li>
                        <h2>yee</h2>
                        <h6>积分：30371</h6>
                        <h6>经验：11110</h6>
                    </div>
                </div>
                <div class="layui-card-header">个人中心</div>
                <div class="layui-card-body">
                    <!--添加一个即时通讯-->
                    <a href="gerenzhongxin.html"><i class="layui-icon layui-icon-dialogue" style="font-size: 25px; color: gray;"></i>消息</a><br><br>
                    <a href="xuexizhoubao.html"><i class="layui-icon layui-icon-form" style="font-size: 25px; color: gray;"></i>学习周报</a><br><br>
                    <a href="gerenxinxi.html"><i class="layui-icon layui-icon-username" style="font-size: 25px; color: gray;"></i>个人信息</a><br><br>
                    <a href="wodeshoucang.html"><i class="layui-icon layui-icon-star" style="font-size: 25px; color: gray;"></i>我的收藏<br><br><a href="gouwuche.html"><i class="layui-icon layui-icon-cart-simple" style="font-size: 30px; color: gray;"></i>购物车</a>
                </div>
            </div>
        </div>
        <div class="layui-col-md9">
            <div class="layui-card">
                <div class="layui-card-header">学习周报</div>
                <div class="layui-card-body">
                    <table class="layui-table" lay-skin="line">
                        <colgroup>
                            <col width="200">
                            <col >
                        </colgroup>
                        <tbody>
                        <tr>
                            <td><i class="layui-icon layui-icon-chat" style="font-size: 30px; color: gray;"></i></td>
                            <td>2019-12-04-2019-12-11</td>
                        </tr>
                        <tr>
                            <td><i class="layui-icon layui-icon-chat" style="font-size: 30px; color: gray;"></i></td>
                            <td>2019-12-11-2019-12-14</td>
                        </tr>
                        <tr>
                            <td><i class="layui-icon layui-icon-chat" style="font-size: 30px; color: gray;"></i></td>
                            <td>2019-12-14-2019-12-16</td>
                        </tr>
                        <tr>
                            <td><i class="layui-icon layui-icon-chat" style="font-size: 30px; color: gray;"></i></td>
                            <td>2019-12-16-2019-12-19</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="__STATIC__/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use('upload', function() {
        var $ = layui.jquery
            , upload = layui.upload;

        //普通图片上传
        var uploadInst = upload.render({
            elem: '#test1'
            , url: '/upload/'
            , before: function (obj) {
                //预读本地文件示例，不支持ie8
                obj.preview(function (index, file, result) {
                    $('#demo1').attr('src', result); //图片链接（base64）
                });
            }
            , done: function (res) {
                //如果上传失败
                if (res.code > 0) {
                    return layer.msg('上传失败');
                }
                //上传成功
            }
            , error: function () {
                //演示失败状态，并实现重传
            }
        });
    });
</script>
</body>
</html>